package com.teira.rhrrealstate.session;

import com.teira.rhrrealstate.entity.*;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.framework.EntityHome;

@Name("tipoOperacionHome")
public class TipoOperacionHome extends EntityHome<TipoOperacion> {

	public void setTipoOperacionId(String id) {
		setId(id);
	}

	public String getTipoOperacionId() {
		return (String) getId();
	}

	@Override
	protected TipoOperacion createInstance() {
		TipoOperacion tipoOperacion = new TipoOperacion();
		return tipoOperacion;
	}

	public void load() {
		if (isIdDefined()) {
			wire();
		}
	}

	public void wire() {
		getInstance();
	}

	public boolean isWired() {
		return true;
	}

	public TipoOperacion getDefinedInstance() {
		return isIdDefined() ? getInstance() : null;
	}

}
